package com.lifeng.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.lifeng.api.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by lifeng on 2019/2/25.
 */
@RestController
public class UserController {
    @Reference(group="lifeng-dubbo",version ="1.0.0")
    private UserService userService;

    @RequestMapping("/dubbo/getUser")
    public String getUser(){
        return userService.getUserInfo("123");
    }
}
